/**
 * @author hhlxy
 * @version 1.0
 * @since 2025/8/5
 */
package cn.yilongquan.user.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 用户实体类
 * 对应数据表tb_user
 * */
@Data //lonbok注解，自动生成get/set，tostring，equals等方法
public class ArticleType {
    private Long id;
    private String typeName;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date  updateTime;
    private Long  parentId;
    private String  bName;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<ArticleType> children = new ArrayList<ArticleType>();
}
